package tree.binaryTree;

public class ArrayBinaryTree {
	private Integer[] arr;
	public ArrayBinaryTree(Integer[] arr){
		this.arr = arr;
	}
	
	private void visit(int i){
		System.out.print(arr[i]);
	}
	
	public void preorder(int i){
		if(arr[i]==null){
			return;
		}
		visit(i);
	}
	
	public static void main(String[] args){
		Integer[] arr = {0,1,null,3,4};
		ArrayBinaryTree tree = new ArrayBinaryTree(new Integer[]{0,1,null,3,4});
	}
}
